package
{
	import com.dreamspark.game.travian.ApplicationFacade;
	
	import flash.display.Sprite;
	import flash.events.Event;
	
	public class Travian extends Sprite
	{
		private var facade :ApplicationFacade = ApplicationFacade.getInstance();
		
		public function Travian()
		{
			addEventListener(Event.ADDED_TO_STAGE, init);
		}
		
		private function init( event :Event = null ) :void {
			facade.startup( this );
			removeEventListener(Event.ADDED_TO_STAGE, init);
		}
	}
}